'use strict';

module.exports = function collectSameElements(collectionA, objectB) {
  let arr = [] ;
  for(let item1 of collectionA){
    for(let item2 of objectB.value){
      if(item1 === item2 ){
        arr.push(item1);
      }
    }
  }
  return arr;
}
